@extends('admin.master')
<script src="/js/admin/maintainInfos.js"></script>
@section('title', '设备列表')
	
@section('firstItem')
@parent
				<span onclick="window.location.href='/admin/device/maintainInfos'">维护信息</span>&raquo;
				<span>维修记录</span>
				<input class="a_indexbg" type="hidden" value="maintaininfos" />
@stop
@section('searchList')
@parent
<div class="seizeBox"></div>
@stop
@section('dataTables')
@parent
<table class="seviceInfo dataTables" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<td>序号</td>
			<td>设备编号</td>
			<td>用户名</td>
			<td>手机号码</td>
			<td>安装地址</td>
			<td>维护保养部件</td>
			<td>预约时间</td>
			<td>收费金额(元)</td>
			<td>维护人</td>
			<td>维修人电话</td>
			<td>维护日期</td>
			<td>备注信息</td>
			<td>是否已处理</td>
		</tr>
	</thead>
	<tbody>
		@for($i=0, $maintainInfoCount=count($maintain_infos); $i<$maintainInfoCount; $i++)
		<tr >
			<td>{{ $i+1 }}</td>
			<td class="deviceCodeCell devicecodeVal">{{ $maintain_infos[$i]->device_code }}</td>
			<td class="userNameCell">{{ $maintain_infos[$i]->customer_name }}</td>
			<td class="userPhoneCell">{{ $maintain_infos[$i]->phone }}</td>
			<td class="userAddressCell">{{ $maintain_infos[$i]->installation_address }}</td>
			<td class="servicePartCell">{{ $maintain_infos[$i]->component }}</td>
			<td class="YMDH"><span class="yearBBox">{{ $maintain_infos[$i]->reserve_at->year }}</span>-<span class="monthBBox">{{ $maintain_infos[$i]->reserve_at->month }}</span>-<span class="dayBBox">{{ $maintain_infos[$i]->reserve_at->day }}</span><span class="hoursBBox"> {{ $maintain_infos[$i]->reserve_at->hour }}</span>时</td>
			<td class="paymentCell">{{ $maintain_infos[$i]->charge }}</td>
			<td class="serviceMenCell">{{ $maintain_infos[$i]->operator }}</td>
			<td class="serviceMenTelCell">{{ $maintain_infos[$i]->operator_phone }}</td>
			<td class="YMD">
				<span class="yearBox">{{ $maintain_infos[$i]->maintain_at->year }}</span>&nbsp;-<span class="monthBox">{{ $maintain_infos[$i]->maintain_at->month }}</span>&nbsp;-<span class="dayBox">{{ $maintain_infos[$i]->maintain_at->day }}</span>
			</td>
			<td class="MemoText" style="width:200px;">{{ $maintain_infos[$i]->remark }}</td>
			<td><input type="hidden" value="1" />
			<!-- @if($maintain_infos[$i]->status) -->
			<span class="checkedBox checkedBoxBg"></span>
			<!-- @else
			<span class="checkedBox"></span>
			@endif -->
			</td>
		</tr>
		@endfor

	</tbody>
</table>
@stop
@section('add_div')
	@parent
	<div class="addInfosBtn addMaintain_infos">添加</div>
@stop
@section('page_num')
<ul class="pagination pagination-lg"> 
	{!! $maintain_infos ->render() !!}
</ul>			
@stop
@section('infor_promit')
@parent
	<!-- 编辑维护信息弹框 -->
	<!-- <div class="editHintBoxBg ">
		<div class="editHintBox">
			<p class="titleTxt">编辑维护信息</p>
			<div class="editBox">
				<p>
					<span>用户姓名</span><input class="userName" type="text" />
					<span class="spanR">用户电话</span><input class="userPhone" type="text" />
				</p>
				<p>
					<span>安装地址</span><input class="userAddress" type="text" />
					<span class="spanR">设备编号</span><input class="device_Code" type="text" />
				</p>
				<p>
					<span>维修部件</span><input class="servicePart" type="text" />
					<span class="spanR">收费 (元)</span><input class="chargeAmount " type="text" />
				</p>
				<p>
					<span>预约日期</span>
					<input type="text" class="dateBox yearBespeakInput" />年
					<input type="text" class="dateBox monthBespeakInput" />月
					<input type="text" class="dateBox dayBespeakInput" />日
					<input type="text" class="dateBox hoursBespeakInput" />时
				</p>
				<p>
					<span>维护人</span><input class="serviceMen" type="text" />
					<span class="spanR">维护人电话</span><input class="serviceMenTel" type="text" />
				</p>
				<p class="p_relative">
					<span>维护日期</span>
					<input type="text" class="dateBox yearInput" />年
					<input type="text" class="dateBox monthInput" />月
					<input type="text" class="dateBox dayInput" />日
					<span class="textareaTitle" style="top:35px">备注信息：</span>
				</p>
				<textarea class="textareaBox other_editMText"></textarea>
				<label class="labelBox" id="labelBox"></label>
			</div>

			<div class="btnBox">
				<a class="cancelBox">取消</a>
				<a class="okBox">确定</a>
			</div>
		</div>
	</div>-->
	<!-- 删除维护信息弹框 -->
	<!-- <div class="checkHintBoxBg deleteMBtn">
		<div class="checkHintBox deleteBox">
			<p class="titleTxt">删除</p>
			<div>是否删除此条维护信息？</div>
			<label class="labelBox deleteLabelMBox"></label>
			<div>
				<a class="yesBtn okBtn">是</a>
				<a class="noBtn cancelBtn">否</a>
			</div>
		</div>
	</div> -->
	<!-- 确认勾选框 -->
	<!-- <div class="checkHintBoxBg reminderMBtn">
		<div class="checkHintBox">
			<p class="titleTxt">用户请求</p>
			<div>确定已对该设备进行维护？</div>
			<label class="labelBox reminderLabelBox"></label>
			<div>
				<a class="yesBtn yesRBtn">是</a>
				<a class="noBtn noRBtn">否</a>
			</div>
		</div>
	</div> -->
	<!-- 添加维护信息弹框 -->
	<!-- <div class="addHintBoxBg">
		<div class="addHintBox">
			<p class="titleTxt">添加维护信息</p>
			<div class="addBox">
				<p>
					<span>用户姓名</span><input class="addUserName" type="text" placeholder="输入用户姓名"/>
					<span class="addSpanR">用户电话</span><input class="addUserPhone" type="text" placeholder="输入手机电话" />
				</p>
				<p>
					<span>安装地址</span><input class="addUserAddress" type="text" placeholder="输入安装地址" />
					<span class="addSpanR">设备编号</span><input class="addDevice_Code" type="text" placeholder="输入设备编号" />
				</p>
				<p>
					<span>收费 (元)</span><input class="addChargeAmount " type="text" placeholder="输入缴费金额" />
					<span class="addSpanR">维修部件</span><input class="addServicePart" type="text" placeholder="输入维修部件" />
				</p>
				<p>
					<span style="width:75px">预约日期</span>
					<input type="text" class="addDateBox addYearBespeakInput" placeholder="年" />年
					<input type="text" class="addDateBox addMonthBespeakInput" placeholder="月"/>月
					<input type="text" class="addDateBox addDayBespeakInput" placeholder="日"/>日
					<input type="text" class="addDateBox addHoursBespeakInput" placeholder="24时制"/>时
				</p>
				<p>
					<span>维护人</span><input class="addServiceMen" type="text" placeholder="输入维护人姓名" />
					<span class="addSpanR">维护人电话</span><input class="addServiceMenTel" type="text" placeholder="输入维护人电话" />
				</p>
				<p class="p_relative">
					<span style="width:75px">维护日期</span>
					<input type="text" class="addDateBox addYearInput" placeholder="年" />年
					<input type="text" class="addDateBox addMonthInput" placeholder="月"/>月
					<input type="text" class="addDateBox addDayInput" placeholder="日"/>日
					<span class="textareaTitle" style="top:35px">备注信息：</span>
				</p>
				
				<textarea class="textareaBox other_addText"></textarea>
				<label class="labelBox" id="addLabelBox"></label>
			</div>

			<div class="addBtnBox">
				<a class="addCancelBox">取消</a>
				<a class="addOkBox">确定</a>
			</div>
		</div>
	</div> -->
@stop
